package lsy.redis001.lsyredis001.common.entity;

import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @Description 分页格式返回
 * @Author lsy
 * @Date 下午 5:06 2020/3/17 0017
 **/
@Data
public class PageResult<T> {
    private Integer totalNum;
    private Integer totalPage;

    private List<T> rows;

    public PageResult(){}

    public PageResult(Integer totalPage,Integer totalNum,List<T> rows){
        this.totalPage = totalPage;
        this.totalNum = totalNum;
        this.rows = rows;
    }
}
